package com.example.work_2;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class reultactivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Activity2 num = new Activity2();
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_reultactivity);
        TextView text = findViewById(R.id.text1);
        text.setText("收藏数："+num.i);
    }
}